package org.dromara.business.service;

import org.dromara.business.domain.OrphanDetails;
import org.dromara.business.domain.vo.OrphanDetailsVo;
import org.dromara.business.domain.bo.OrphanDetailsBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 孤儿详细信息Service接口
 *
 * @author zlj
 * @date 2025-01-18
 */
public interface OrphanDetailsService extends IService<OrphanDetails> {

    /**
     * 查询孤儿详细信息
     */
    OrphanDetailsVo queryById(Long userId);

    /**
     * 查询孤儿详细信息列表
     */
    TableDataInfo<OrphanDetailsVo> queryPageList(OrphanDetailsBo bo, PageQuery pageQuery);

    /**
     * 查询孤儿详细信息列表
     */
    List<OrphanDetailsVo> queryList(OrphanDetailsBo bo);

    /**
     * 新增孤儿详细信息
     */
    Boolean insertByBo(OrphanDetailsBo bo);

    /**
     * 修改孤儿详细信息
     */
    Boolean updateByBo(OrphanDetailsBo bo);

    /**
     * 校验并批量删除孤儿详细信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    int add(OrphanDetailsBo bo);

}
